import os
import re

# with open("./me.html", encoding="utf-8") as f:
#     data = f.read()
#
#     print(data)
#
# css_list = re.findall(r'href="(.*?)"\stype="text/css"\s/>', data)
#
# js_list = re.findall(r'src="(.*?\.js)"', data)
#
# html_list = re.findall(r'href="(.*?\.html)"', data)
# print((html_list))

# ret =os.path.exists("./me.html")
# print(ret)


# path = "https://www.osgeo.cn/scrapy/intro/overview.html"
#
# ind = path.replace("https://www.osgeo.cn/", "")
#
# print(ind)

# dir = path[:ind]
# print(dir)
# file = path[ind:]
# print(file)

# path = "https://www.osgeo.cn/scrapy/news.html"
#
# ret = path.replace("https://www.osgeo.cn/", "")
#
# dirpath = ret[:ret.rfind("/")]
#
# print(dirpath)
#
# if not os.path.exists(dirpath):
#
#     os.makedirs()


# price_info = " 3.9元包邮（需用券）"

# if "（" in price_info and "）" in price_info:
#     a = price_info.find("（")
#     b = price_info.find("）")
#     beizhu = price_info[a + 1:b]
#     price_info = price_info.replace("（%s）" % beizhu, "")
#
# print(price_info)

# aa = "低至52"
#
# price = re.findall(r"[0-9]+", aa)
#
# print(price)
